cmake_minimum_required(VERSION 3.10)

project(beastHttpServer LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 14)

set(BOOST_ROOT "/usr/local/hslDir/mylib/boost")

find_package(Boost REQUIRED COMPONENTS system)


file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc)

add_executable(beastHttpServer beast_http.cc ${SOURCES} )

target_include_directories(beastHttpServer PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(beastHttpServer PRIVATE Boost::system)

#引入jsoncpp头文件
target_include_directories(beastHttpServer PRIVATE /usr/local/include/jsoncpp/)
#引入jsoncpp库
target_link_libraries(beastHttpServer  PRIVATE /usr/local/lib/libjsoncpp.a)
